﻿using EntityModel.PageListInfor;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel.CommodityMent
{
    /// <summary>
    /// 虚拟商品表
    /// </summary>
    [Table("goods_virtuals")]
    public class AikeApplet_goods_virtuals: Pagination
    {
        /// <summary>
        /// 虚拟ID
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        public int shopId { get; set; }

        /// <summary>
        /// 商品id
        /// </summary>
        public int goodsId { get; set; }

        /// <summary>
        /// 卡卷号
        /// </summary>
        [MaxLength(20)]
        public string cardNo { get; set; }

        /// <summary>
        /// 卡卷密码
        /// </summary>
        [MaxLength(20)]
        public string cardPwd { get; set; }

        /// <summary>
        /// 订单id
        /// </summary>
        public int orderId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [MaxLength(20)]
        public string orderNo { get; set; }

        /// <summary>
        /// 是否使用	
        /// 0:未使用 1:已下单
        /// </summary>
        public int isUse { get; set; } = 0;

        /// <summary>
        /// 有效状态	
        /// 0:未用 1:已用
        /// </summary>
        public int dataFlag { get; set; } = 0;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createTime { get; set; }
    }
}
